/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package monitoring.beans.database;

/**
 *
 * @author Regulus
 */
public class OccurrenceElement {

    private Integer idOccurrenceElement;
    private String catalogNumber;
    private Sex sex;

    public String getCatalogNumber() {
        return catalogNumber;
    }

    public void setCatalogNumber(String catalogNumber) {
        this.catalogNumber = catalogNumber;
    }

    public Integer getIdOccurrenceElement() {
        return idOccurrenceElement;
    }

    public void setIdOccurrenceElement(Integer idOccurrenceElement) {
        this.idOccurrenceElement = idOccurrenceElement;
    }

    public Sex getSex() {
        return sex == null? new Sex():sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public OccurrenceElement(Integer idOccurrenceElement, String catalogNumber, Sex sex) {
        this.idOccurrenceElement = idOccurrenceElement;
        this.catalogNumber = catalogNumber;
        this.sex = sex;
    }

    public OccurrenceElement() {
        this.sex = new Sex();
    }
    
}
